//
//  RadioHomeTableViewHeadViewCollectionViewCell.m
//  SunXi
//
//  Created by dllo on 15/11/27.
//  Copyright © 2015年 大远. All rights reserved.
//

#import "RadioHomeTableViewHeadViewCollectionViewCell.h"

@interface RadioHomeTableViewHeadViewCollectionViewCell ()
@property(nonatomic, strong) UIImageView *myImageview;
@end


@implementation RadioHomeTableViewHeadViewCollectionViewCell


- (instancetype)initWithFrame:(CGRect)frame{
    
    if (self = [super initWithFrame:frame]) {
        [self createData];
    }
    return self;
}

- (void)createData{
    self.myImageview = [[UIImageView alloc]init];
    [self.contentView addSubview:self.myImageview];
}


- (void)layoutSubviews{
    [super layoutSubviews];
    
    self.myImageview.frame = CGRectMake(0, 0, CWIDTH, CHEIGHT);
    [self.myImageview sd_setImageWithURL:[NSURL URLWithString:self.model.coverimg] placeholderImage:[UIImage imageNamed:@"zan"]];
    
}
@end
